<?php
$label = CActiveRecord::model('NewsCategory')->modelName;

$this->breadcrumbs = array(
    $label . '管理',
    '查看' . $label,
);
?>
<table class="tb tb2 nobdb">
    <tr>
        <th colspan="15" class="partition">详细资料</th>
    </tr>
</table>

<?php
$this->widget('zii.widgets.CDetailView', array(
    'data' => $model,
    'attributes' => array(
        'id',
        'category.name',
        'title',
        array('name' => 'logo', 'type' => 'raw', 'value' => '<img style="width:80px;" src="' . Yii::app()->baseUrl . $model->logo . '"/>'),
        'tags',
        'author',
        array('name' => 'source', 'type' => 'raw', 'value' => CHtml::link('点击打开', $model->source, array('target' => '_blank'))),
        array(
            'name' => 'content', 'type' => 'raw'),
        'created',
        'updated',
    ),
));
?>